unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    Button2: TButton;
    Button3: TButton;
    Button4: TButton;
    Button5: TButton;
    Button6: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
    procedure Button4Click(Sender: TObject);
    procedure Button5Click(Sender: TObject);
    procedure Button6Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  Caption := 'Pos: ' + IntToStr(Pos('l', 'Hello world'));
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  Caption := 'LowerCase: ' + LowerCase('TEST');
end;

procedure TForm1.Button3Click(Sender: TObject);
begin
  Caption := 'UpperCase: ' + UpperCase('test');
end;

procedure TForm1.Button4Click(Sender: TObject);
begin
  Caption := 'CompareText: ' + IntToStr(CompareText('HeLLo', 'Hello'));
end;

procedure TForm1.Button5Click(Sender: TObject);
begin
  Caption := 'StrComp: ' + IntToStr(StrComp('Hello', 'Hello'));
end;

procedure TForm1.Button6Click(Sender: TObject);
const
 SrcArray : array[0..12] of Char =
  ('1','2','3','4','5','6','7','8','9','0','A','B',#0);
var
  Dest, Src: PChar;
  DestArray: array[0..12] of Char;
begin
 Dest := @DestArray[0];
 Src := @SrcArray[0];
 StrCopy(Dest, Src);

 Caption := 'StrCopy: ' + Dest;
end;

end.
